import java.util.Random;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;
import org.apache.log4j.Logger;


public class IE2 implements JavaDelegate {
	private static Logger  logger = Logger.getLogger("IE2");
	@Override
	public void execute(DelegateExecution arg0) throws Exception {		
		Thread.sleep(new Random().nextInt(2000));
		logger.info(arg0.getProcessInstanceId()+" "+arg0.getVariable("processId"));		
	}

}
